using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;

namespace WindowsFormsApplication1
{
    public partial class rptThongtinGV : DevExpress.XtraReports.UI.XtraReport
    {
        int STT = 0;
        public rptThongtinGV()
        {
            InitializeComponent();
        }

        private void colSTT_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            STT++;
            colSTT.Text = STT.ToString();
        }

        public void BindData()
        {
            colMakhoa.DataBindings.Add("Text", DataSource, "Makhoa");
            colMaGV.DataBindings.Add("Text", DataSource, "MagvID");
            colHoten.DataBindings.Add("Text", DataSource, "Hoten");
            colNgaysinh.DataBindings.Add("Text", DataSource, "NgaySinh", "{0:MM/dd/yyyy}");
            colTrinhdo.DataBindings.Add("Text", DataSource, "MatrinhdoID");
            colDiachi.DataBindings.Add("Text", DataSource, "Diachi");
        }

    }
}
